package com.rectcircle.scalatrateset.controller

/**
  * Created by sunben960729 on 2016/12/30.
  */
class ReverseRouteController extends  ScalatratestStack {
	get("/relative"){
		// This will redirect to http://<host>/page-relative
		redirect(url("page-relative"))
	}
	
	get("/context") {
		// This will redirect to http://<host>/<context>/en-to-es?one=uno&two=dos
		redirect( url("/en-to-es", Map("one" -> "uno", "two" -> "dos")) )
	}
	
}
